package com.liao.service;

import com.liao.bean.Order;
import com.liao.bean.result.PageResult;

import java.util.Date;

public interface OrderService {
    /**
     * 根据状态模糊查询订单列表
     * @param currentPage
     * @param pageSize
     * @param state_id
     * @param orderId
     * @return
     * @throws Exception
     */
    PageResult<Order> queryModuleListByPage(Integer currentPage, Integer pageSize, String state_id, String orderId) throws Exception;

    /**
     * 添加订单信息
     * @param orderId
     * @param buyerPhone
     * @param orderTime
     * @param state
     * @param userId
     * @param address
     * @throws Exception
     */
    void addOrder(String orderId, String buyerPhone, String orderTime, String state, String userId, String address) throws Exception;

    /**
     * 删除订单信息
     * @param orderId
     * @throws Exception
     */
    void deleteOrder(String orderId) throws Exception;

    /**
     * 编辑订单信息
     * @param oldOrderId
     * @param orderId
     * @param buyerPhone
     * @param orderTime
     * @param state
     * @param userId
     * @param address
     * @throws Exception
     */
    void editOrder(String oldOrderId, String orderId, String buyerPhone, Date orderTime, String state, String userId, String address) throws Exception;
}
